Skip to content

MAUI Autopilot: stop when a conflicts round cannot publish a merge - #40915

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-autopilot-stop-unresolvable-conflicts
Dec 1, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-autopilot-stop-unresolvable-conflicts

Conversation

@kubaflo

@kubaflo kubaflo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 3188a84e2228b1bac39272149528c00e3013bee2

Dimension Assessment Rationale
Change confidence 9/10 ↑ Decision replayed: #39502/#40334 state (conflicts, nothing published) → stop; expert noop with answered threads → continues; published conflict merge → next round.
↑ Workflow compiles; SOURCE comes from the existing pre_activation output.
↓ Live check pending merge.
Diagnosis confidence 9.5/10 ↑ #40334 posted six identical "round 1 … conflict in eng/pipelines/ci.yml" comments every ~6 min; #39502 the same; next_round dispatches again whenever nothing is published and no thread is open.
Evidence fit 9.5/10 ↑ Explains the endless conflicts rounds on both PRs.

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

When a PR's merge conflicts can't be resolved by Autopilot (for example conflicts outside src/, which it never publishes), the conflicts round publishes nothing. With no open review threads, next_round treated that as "move on" and dispatched again — which picks the same conflicts round, forever (#40334: six identical rounds in 30 minutes; #39502 likewise).

A conflicts round that publishes nothing now stops the loop with s/autopilot-needs-maintainer-decision and a clear message: the conflicts could not be resolved automatically; resolve them and comment /review autopilot.

Validation: replayed the next_round decision for these PRs' state and for the unaffected paths; gh aw compile maui-expert-autopilot succeeds.

When the merge with the base has conflicts the round cannot resolve (e.g.
outside src/), the round publishes nothing, has no open threads, and
next_round started another round: the same unresolvable merge again, every
~6 minutes (#40334, #39502). A conflicts round that publishes nothing now
stops with needs-maintainer-decision and asks for the conflicts to be
resolved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo

kubaflo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

Copilot AI balanced review requested due to automatic review settings December 1, 2026 01:37
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool December 1, 2026 01:37 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change that stops automatic redispatch after an unpublished conflicts round.

No open issues 🎉

What changed in this PR

Stops MAUI Autopilot from repeatedly attempting unresolved merge conflicts when a conflicts round publishes nothing, addressing the loop reported on #39502 and #40334.

Changes:

  • Passes the round source into next_round and prevents automatic redispatch after an unpublished conflicts round.
  • Adds conflict-specific guidance to resolve conflicts manually and restart with /review autopilot.
  • Updates the generated workflow to match the source, preserving continuation for other successful rounds.
File Description
.github/​workflows/​maui-expert-autopilot.md Adds the conflicts stop condition and recovery message.
.github/​workflows/​maui-expert-autopilot.lock.yml Synchronizes the generated workflow and metadata with the source changes.

Review effort: Balanced

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool December 1, 2026 01:43 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool December 1, 2026 01:43 — with GitHub Actions Inactive

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit c5e9121 into main Dec 1, 2026
15 of 17 checks passed
@kubaflo
kubaflo deleted the kubaflo-autopilot-stop-unresolvable-conflicts branch December 1, 2026 02:08

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 3188a84e Deployed Dec 1, 2026 by kubaflo via conclusion #3557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants